/*
 * @Descripttion: 
 * @version: 1.0
 * @Author: Sam
 * @Date: 2022-04-11 16:22:01
 * @LastEditors: Sam
 * @LastEditTime: 2022-04-23 15:55:35
 */
import request from '@/utils/request'

/**
 * 
 * @param {*} table //表名
 * @returns 
 */
export function curd_index(table='') {
  return request({
    url: '/admin/curd_index?table='+table,
    method: 'get'
  })
}

/**
 * 
 * @param {*} data  //自动生成提交
 * @returns 
 */
export function curd_run(data) {
  return request({
    url: `/admin/curd_run`,
    method: 'post',
    data
  })
}
